<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of myLoginFormclass
 *
 * @author birko
 */
class myLoginForm extends BaseForm {
  public function setup()
  {
    $this->setWidgets(array(
      'login'          => new sfWidgetFormInput(),
      'password'      => new sfWidgetFormInputPassword(),
    ));

    $this->setValidators(array(
      'login'         => new sfValidatorString(),
      'password'      => new sfValidatorString(),
    ));

    $this->widgetSchema->setNameFormat('user[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }
}
?>
